package org.example.school.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.school.entity.Teachers;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.school.model.dto.TeacherProfileDTO;

import java.util.List;

/**
 * <p>
 * 教师信息表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-10-09
 */
public interface TeachersMapper extends BaseMapper<Teachers> {
    /**
     * 根据教师ID查询其所教课程信息
     * @param teacherId 教师在teachers表中的ID
     * @return 课程信息列表
     */
    List<TeacherProfileDTO.CourseInfo> findTeachingCoursesByTeacherId(@Param("teacherId") Long teacherId);
}
